<div class="bs-sidebar hidden-print affix-top" role="complementary" style="width: 180px">
  <ul class="nav bs-sidenav ">
      <?php
      if(!isset($show_menu)) : $show_menu = $current_controller; endif;
      if(!isset($show_childs)) : $show_childs = $current_action; endif;
      foreach($admin_menus as $key =>$row):?>
        <?php if(!empty($row['childs'])):?>
          <div class="list-group">
              <?php foreach ($row['childs'] as $action => $child_row):?>
                <a href="<?php echo $child_row['href']?>" class="list-group-item list-group-item-action <?php if($show_childs == $action):?> active <?php endif;?>">
                    <?php echo $child_row['title']?>
                </a>
              <?php endforeach;?>
          </div>
        <?php endif;?>
      <?php endforeach;?>
  </ul>
</div>
